<?php

namespace App\Exceptions;

use Exception;

class VerifyException extends Exception
{

    /**
     * 重定义请求参数异常捕获时的response
     */
    public function render($request)
    {

        return response()->json(['time' => time(), 'code' => 40010, 'msg' => $this->getMessage()]);
    }
}
